<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<jsp:useBean id="bean" class="com.lmpop.frame.util.RandomID" scope="page" /> 
<%@page import="com.lmpop.trade.ti_channel.*" %>
<%@ page import="com.lmpop.trade.ti_news.*"%> 
<%
String user_id="";	
	if( session.getAttribute("SESSION_USER_ID") != null )
	{
		user_id = session.getAttribute("SESSION_USER_ID").toString();
	}
	
String info_id = bean. GenTradeId ();
Ti_channelInfo channelinfo = new Ti_channelInfo();
Ti_newsInfo newslinfo = new Ti_newsInfo();
String select = channelinfo.getSelchannelByTLevel("1");
String select1 = newslinfo.getSelnewsByTLevel();

%>
<html>
  <head>
    <title>ti_newscomment Manager</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	 <script type='text/javascript' src='<%=request.getContextPath()%>/dwr/engine.js'></script>
		<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/util.js'></script>
		<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/Ti_channelInfo.js'></script>
	 		<script type="text/javascript" src="news.js"></script>
	 		<script src="jquery.js" type="text/javascript"></script>
	 		<script src="iColorPicker.js" type="text/javascript"></script>
</head>

<body>
	<h1>Add ti_newscomment</h1>
	
	
	
	<form action="/doTradeReg.do" method="post" name="addForm">
	<input name="info_id" id="info_id" value="<%=info_id%>" type="hidden" />
	<input name="user_id" id="user_id" value="<%=user_id%>" type="hidden" />
	<input name="up_num" id="up_num" value="0" type="hidden" />
	<input name="down_num" id="down_num" value="0" type="hidden" />
	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">
		
		
		
		<tr>
			<td align="right" width="10%">
				资讯:
			</td>
			<td>
			<select name="news_id" id="news_id" size="1" style="width:130px">
                                <%=select1%>
                              </select></td>
		</tr>
		
		<tr>
			<td align="right" width="15%" valign="top">
				所属栏目<font color="red">*</font>			
		  </td>
				<td colspan="3">
				<table width="43%"cellspacing="0" cellpadding="0" border="0" align="left" class="listtab1">
							<tr>
							  <td width="30%" align="left">
							  <select name="ch_id" id="sort1" size="8" style="width:130px"onChange="setSecondClass(this.value);">
                                <%=select%>
                              </select>
							  </td>
								<td width="30%" align="left">
									<select name="ch_id" id="sort2"  size="8" style="width:130px;display:none" onChange="setTherdClass(this.value);">
										<option value="">请选择...</option>
									</select>								</td>
							  <td width="40%" align="left">
									<select name="ch_id" id="sort3"  size="8" style="width:130px;display:none" >
										<option value="">请选择...</option>
									</select>							  
									</td>
							</tr>
			    </table>
			</td>
		</tr>
		
		
		<tr>
			<td align="right" width="10%">
				content:
			</td>
			<td><input name="content" id="content" type="text" /></td>
		</tr>
		
		
		
		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="3711" />
				<input type="submit" class="buttoncss" name="tradeSub" value="提交"onClick="return chekedform()" />&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='index.jsp';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
